package com.jams.goodox.entity;

import java.io.Serializable;

/**
 * Created by jams on 2016/8/19.
 * ***
 * Tel: ***
 */

public class Address implements Serializable {
    private String address;
    private String areaId;
    private String id;
    private String intime;
    private boolean inServiceArea;
    private int isDefault;
    private String name;
    private String mobile;
    private String userId;
    private int isCommunity;
    private String area;
    private String city;
    private String province;
    private String communityName;
    private String memberid;


    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public boolean isInServiceArea() {
        return inServiceArea;
    }

    public void setInServiceArea(boolean inServiceArea) {
        this.inServiceArea = inServiceArea;
    }

    public int getIsCommunity() {
        return isCommunity;
    }

    public void setIsCommunity(int isCommunity) {
        this.isCommunity = isCommunity;
    }

    public boolean isCommunity() {
        return isCommunity == 1;
    }

    public String getAddressDetail() {
        return address;
    }

    public void setAddressDetail(String addressDetail) {
        this.address = addressDetail;
    }

    public String getAreaAddress() {
        return city;
    }

    public void setAreaAddress(String areaAddress) {
        this.city = areaAddress;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIntime() {
        return intime;
    }

    public void setIntime(String intime) {
        this.intime = intime;
    }

    public int getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(int isDefault) {
        this.isDefault = isDefault;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return mobile;
    }

    public void setPhone(String phone) {
        this.mobile = phone;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isDefault(){return  this.isDefault == 1;}

    //获取全部地址
    public String getAddressInfo(){
        return city + address;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }
}
